﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FXSJZYYQList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FXModel.FXSJZYYQList" %>
<%--三井住友逾期情况--%>

<form id="pagerForm" method="post" action="FXModel/FXSJZYYQList.aspx">
        <input type="hidden" name="ShowTab" value="<%=ShowTab %>" />
        <input type="hidden" name="AliasName" value="<%=AliasName %>" />
        <input type="hidden" name="orderField" value="<%=orderField %>" />
        <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
        <input type="hidden" name="pageNum" value="1" />
        <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
    </form>

<div class="pageContent" > 
    <form id="FXSJZYYQListFrom" runat="server" method="post" action="FXModel/FXSJZYYQList.aspx" onsubmit="return navTabSearch(this);">
         <div class="panelBar" style=" border-width:0px!important;">
                <ul class="toolBar">                        
                    <%--<li><a class="add" href="javascript:FXFinanceLeaseMasterList_ADD()"     title="添加作业确认表"><span>添加</span></a></li> --%>
                    <li>更新时间：<%=IHISCETeim.BLL.FXSJZYController.FXSJZYAgent_GetUpdateDate()%></li>
                </ul>
           </div>
           <div class="tabs" style=" border-width:0px!important;" currentIndex="<%=ShowTab==0?0:1 %>" eventType="click">
                <div class="tabsHeader" style=" border-width:0px!important;">
		            <div class="tabsHeaderContent" style=" border-width:0px!important;">
			            <ul>
                            <li><a href="javascript:;" onclick="$('#FXSJZYYQListFrom_ShowTab').val('0'); navTabSearch(FXSJZYYQListFrom)"><span>经销商</span></a></li>
                            <li><a href="javascript:;" onclick="$('#FXSJZYYQListFrom_ShowTab').val('1'); navTabSearch(FXSJZYYQListFrom)"><span>客户明细</span></a></li>
                            
			            </ul>
		            </div>
	            </div>
	            <div class="tabsContent" style=" display:none;"></div>
            </div>
            <div class="pageHeader" style="overflow:hidden!important;">
                <div class="searchBar">
                <input type="hidden" id="FXSJZYYQListFrom_ShowTab" name="ShowTab" value="<%=ShowTab %>" />
                </div>
            </div>
            <div class="pageContent" > 

                <%if(ShowTab==0){ %>
                <table class="table" width="100%" layouth="115" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                    <th >经销商</th>   
                    <th >回收总额</th>                  
                    <th >逾期总额</th>      
                    <th>已回收租金</th>
                    <th align="center" >逾期率</th>
                    <th >未回收租金</th>
                    <th >逾期率</th>
                    <th  align="center" >距离3%需支付租金</th>
                    <th >距离1%需支付租金 </th>
                    <th >总剩余租金</th>
                </tr>
                </thead>
                <asp:repeater id="rpMenu0" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr >
                        <td ><a href="javascript:FXSJZYYQListFromAgentClick('<%# Eval("AliasName")%>')"  style=" font:bold;"><%# Eval("AliasName")%></a></td>
                        <td><%# GetShowDBDecimal(Eval("TotalRecovery"))%></td>                       
                        <td ><%# GetShowDBDecimal(Eval("OverdueAmount"))%></td>  
                        <td ><%#  GetShowDBDecimal(Eval("RecoveryRent"))%></td>                        
			            <td><%# Eval("YuQiLv")%></td>
                        <td><%#  GetShowDBDecimal(Eval("NotRecoveryRent"))%></td>
                        <td><%# Eval("OverdueRatio")%></td>
                        <td><%#  GetShowDBDecimal(Eval("Range3"))%></td>      
                        <td><%#  GetShowDBDecimal(Eval("Range1"))%></td>      
                        <td><%#  GetShowDBDecimal(Eval("Goal"))%></td> 
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                       
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
               </table>

    <%} %>
    <%if(ShowTab==1){ %>
            <table class="table" width="100%" layouth="115" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                    <th >经销商</th>   
                    <th >客户名</th>                  
                    <th >合同号</th>      
                    <th><%=GetColumnTitle(1)%></th>
                    <th><%=GetColumnTitle(2)%></th>
                    <th ><%=GetColumnTitle(3)%></th>
                    <th >逾期总额</th>
                    <th align="center">逾期期数</th>
                    <th align="center">总期数</th>
                    <th align="center">应付期数</th>
                    <th align="center">已付期数</th>
                    <th align="center">剩余期数</th>
                </tr>
                </thead>
                <asp:repeater id="rpMenu1" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr >
                        <td><%# Eval("AliasName")%></td>
                        <td><%# Eval("CustomerName")%></td>                       
                        <td ><%# Eval("ContractNo")%></td>  
                        <td ><%#  GetShowDBDecimal(Eval("Balance1"))%></td>                        
			            <td><%#  GetShowDBDecimal(Eval("Balance2"))%></td>
                        <td><%#  GetShowDBDecimal(Eval("Balance3"))%></td>
                        <td><%#  GetShowDBDecimal(Eval("OverdueAmount"))%></td>
                        <td><%# Eval("OverdueNumber")%></td>
                        <td><%# Eval("LTotalPeriods")%></td>
                        <td><%# Eval("LEvadePeriods")%></td>
                        <td><%# Eval("LPaidPeriods")%></td>
                        <td><%# Convert.ToDecimal(Eval("LTotalPeriods") is DBNull ? 0 : Eval("LTotalPeriods")) -Convert.ToDecimal(Eval("LPaidPeriods") is DBNull ? 0 : Eval("LPaidPeriods"))%></td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                       
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
               </table>
    <%} %>


                 <div class="panelBar">
                    <div class="pages">
                        <span>显示</span>
                        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})" >
                            <%=SetnumPerPage() %>
                        </select>
                        <span>条，共<%=TotalCount%>条</span>
                    </div>
                    <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
                        pagenumshown="10" currentpage="<%=pageNum %>">
                    </div>
                </div>
            </div>
    </form>
<div>
<script>
    function FXSJZYYQListFromAgentClick(AliasName) {
        var rel = "FXSJZYYQList";
        var url = "FXModel/FXSJZYYQList.aspx?ShowTab=1&AliasName="+encodeURI(AliasName);
        var title = "经销商逾期情况";
        var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
        //top.$.pdialog.open(url, rel, title, options);
        top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
    }
</script>